<ion-view class="bg">
  <ion-header-bar class="bar bar-positive">
    <button class="button back-button buttons icon ion-ios-arrow-left button-clear" nav-direction="back" ui-sref="outer">返回</button>
    <h3 class="title">添加货物</h3>
    <button class="button button-icon icon ion-ios-search" ng-click="modal.show()"></button>
  </ion-header-bar>
  <ion-footer-bar>
    <div class="btnDiv">
      <button class="button button-positive longButton" ng-click="confirmGoods()">确定</button>
    </div>
  </ion-footer-bar>
  <ion-content>
    <ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
    <div ng-if="showloading" class="ion-spinner">
      <ion-spinner icon="lines" class="spinner-calm"></ion-spinner>
    </div>
    <ion-list class="myList" ng-if="showloading == false">
      <h5 ng-if="wbToTransData==''" class="notFound">未找到数据</h5>
      <div class="li" ng-repeat="data in wbToTransData">
        <ion-checkbox class="chBox" ng-model="$parent.chBox[$index]" ng-click="wbChecked($index,data.ID)">
          <div>
            <i>承运单号</i>
            <i class="value" style="color: #ff9800">{{data.WAYBILL_NO}}</i>
          </div>
          <div>
            <i>接单部门</i>
            <i class="value">{{deptName}}</i>
          </div>
          <div>
            <i>货物名称</i>
            <i class="value">{{data.GOODS_NAME}}</i>
          </div>
          <div>
            <i>目的地</i>
            <i class="value">{{data.DESTINATION_STATION}}</i>
          </div>
          <div>
            <i>承运日期</i>
            <i class="value">{{data.WAYBILL_DATE | date : "yyyy年MM月dd日"}}</i>
          </div>
        </ion-checkbox>
        <label class="item item-input div hide" id="transferFee{{data.ID}}" style="border: 0;margin-top:-27px;">
          <i class="input-label col-25" >中转费</i>
          <input type="number" ng-blur="transferOnblur(data.ID,$index)" placeholder="请输入金额" ng-model="$parent.transferFee[$index]" onkeypress="this.value = this.value.slice(0, 9)">
        </label>
      </div>
    </ion-list>
  </ion-content>
</ion-view>
